home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Core Concepts in Art 2
/
Core Concepts in Art (Frames of Reference)(The McGraw-Hill Companies)(2004).iso
/
mac
/
media
/
create.swf
/
scripts
/
frame_1
/
DoAction_2.as
next >
Wrap
Text File
|
2003-11-06
|
2KB
|
66 lines
if(_root.questionsWithImages == undefined || _root.generatorArray.length == 0)
{
_root.questionsWithImages = new Array();
var whereToBegin = _root.dropChapters + 1;
j = 0;
while(j < whereToBegin)
{
this["chapt" + j] = new Array();
_root.questionsWithImages.push(this["chapt" + j]);
j++;
}
i = whereToBegin;
while(i <= _root.howManyChapters)
{
duplicateMovieClip(arrayBuilder_mc,"chaptArray" + i,16384 + (100 + i));
this["chaptArray" + i].num = i;
if(i < 10)
{
loadVariables("txtFiles/Ch0" + i + "questionNum.txt","chaptArray" + i);
}
else
{
loadVariables("txtFiles/Ch" + i + "questionNum.txt","chaptArray" + i);
}
i++;
}
}
else
{
findStartChapter();
i = 0;
while(i < _root.questionsWithImages[theChapter].length)
{
duplicateMovieClip("create_mc.variableHolder_mc","vh" + i,16384 + (200 + i));
i++;
}
j = 0;
while(j < _root.howManyChapters)
{
duplicateMovieClip("create_mc.chapter_mc","chapt" + j,16384 + (300 + j));
if(j != theChapter - 1)
{
create_mc["chapt" + j].highlight_mc._visible = 0;
}
if(j < 9)
{
create_mc["chapt" + j]._x = create_mc.chapter_mc._x + 12 * j;
}
else
{
create_mc["chapt" + j]._x = create_mc.chapter_mc._x - 64 + 20 * j;
}
var chapterColor = new Color(create_mc["chapt" + j].theChap);
chapterColor.setRGB(_root.restColor);
create_mc["chapt" + j].theNum = j + 1;
greyOutEmptyTitles(j);
j++;
}
create_mc.variableHolder_mc.firstTime = 1;
}
imageLoc = undefined;
create_mc.chapter_mc._visible = 0;
noImage_mc._visible = 0;
var standInColor = new Color("create_mc.ph_standIn");
standInColor.setRGB(_root.specialObjRest);